﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfPayCashier.aspx.cs" Inherits="msBsc.WebUi.wfPayCashier" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server"> 
    <title>付款到优速购商城</title>
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" /> 
    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css,themes/Style1/Pay.css" />  

    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js,jqPlugin/layer/layer.min.js "
        type="text/javascript"></script>
    <!--head fix rgn-->
    <script type="text/javascript">
        $(window).load(function () {
            $("#j-balance-box").click(function () {
                if ($(this).attr("checked") == true || $(this).attr("checked") == "checked") {
                    $("#divUsrAmtInp").show(); 
                } else {
                    $("#divUsrAmtInp").hide();
                    $('#txtUserPaidAmt').val('0');
                    $('#txtTradPws').val('');
                    StaticPayAmt();
                }
            });
            $("#txtUserPaidAmt").keyup(function () {
                if (!$(this).val()) { $(this).val('0'); }
                if (isNaN($(this).val())) { $(this).val('0'); }
                if ($(this).val()) {
                    if (parseFloat($(this).val()) > parseFloat($("#spnUserAmt").html())) {
                        $(this).val($("#spnUserAmt").html());
                    }
                    if (parseFloat($(this).val()) > parseFloat($('#emPayAMt').html())) {
                        $(this).val($('#emPayAMt').html());
                    }
                    $("#spnUserPaidamt").html(parseFloat($(this).val()).toFixed(2));
                    StaticPayAmt();
                }
            });
        });

        function StaticPayAmt() { 
            $("#spnOnlineAmt").html((parseFloat($("#emPayAMt").html()) - parseFloat($("#spnUserPaidamt").html())).toFixed(2));
        };

        function doUpateAmt() {
            var loadi = layer.load('正在刷新中…');
            try {
                function closeload() { layer.close(loadi); }
                var _jsParam = new jsonRow(); 
                _jsParam.AddCell("ACTION", "doUpateAmt");
                _jsParam.AddCell("ID", $("#orderId").val()); 

                ajaxComm(_jsParam, null, closeload);
            }
            catch (err) {
                layer.close(loadi);
            }
        };
        function doConfirmPay() {
            var loadi = layer.load('正在付款中…');
            try {
                function closeload() { layer.close(loadi); }
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "doConfirmPay");
                _jsParam.AddCell("ID", $("#orderId").val());
                _jsParam.AddCell("USER_PAID_AMT", $("#spnUserPaidamt").html());
                _jsParam.AddCell("ONLINE_PAID_AMT", $("#spnOnlineAmt").html());
                _jsParam.AddCell("TRADING_PSW", $("#txtTradPws").val()); 

                ajaxComm(_jsParam, null, closeload);
            }
            catch (err) {
                layer.close(loadi);
            }
        };
        
    </script> 
</head>
<body>
    <div id="mallPage" class="tms-page mallAct tmall-  page-not-market">
        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%> 
         
<div class="buy-content" style="width:1190px; padding:20px; margin-left:auto; margin-right:auto; background-color:#fff;">

<%--
    <div id="jigsaw76" class="stepbar">
<h1 class="buy-logo"> 
</h1>
<ol class="tb-stepbar">
    
    <li class="step-5 stepbar-current stepbar-first">
        <span>查看购物车</span>
    </li>
    
    <li class="step-5  stepbar-current">
        <span>拍下商品</span>
    </li>
    
    <li class="step-5">
        <span>付款到优速购商城</span>
    </li>
    
    <li class="step-5">
        <span>确认收货</span>
    </li>
    
    <li class="step-5 stepbar-last">
        <span>评价</span>
    </li>
    
</ol>

</div> 
--%>

    <!--   -->
     



			  	
    
		
        <div style=" font-size:20px; line-height:24px;color:#222;">当前付款账户：<span id="spnUserType">个人账户</span><span style=" font-style:italic;color:Blue;" id="spnUserNo">（帐户号：撒旦发射002）</span></div>






        <div id="J-payMethod" class="main-container" style=" margin-top:20px;  ">

        
<!-- 订单信息 开始 --> 
        <!-- 订单信息 结束 -->

            <div id="J-account">
                <input type="hidden" name="stat" value="ok" class="stat">
                <div class="account-items"> 
                </div> 
                <div class="j-balanceChannel row-container  row-container-disabled " id="Div2" >
                    <div class="j-row row-basic" style="height:auto; line-height:30px; padding:5px; font-size:18px;color:#222;"> 


                <div class="order-title" id="divOrderCountDesc"> 
                </div>
                <div class="">
                <span> 订单号：</span><span id="spnOrderNos"></span>
                </div>
                <div class="">
                <span> 订单名称：</span><span id="spnOrderNmes"></span>
                </div>
                <div class="order-amount">
                    <div class="order-real-amount" style=" font-size:18px;">
                        付款金额合计：<em class="" id="emPayAMt"></em> 元 <a href="javascript:void(0);" onclick="doUpateAmt();">刷新</a>
                    </div>
                </div> 
                </div> 
                <div style="clear:both; line-height:2px;height:2px;"></div>
                </div> 
                <div style="clear:both; line-height:2px;height:2px;"></div>
                <div class="j-balanceChannel row-container  row-container-disabled" id="J-balance" >
                  
                    <div class="j-row row-basic">
                        <input id="j-balance-box" class="channel-input j-balanceCheck j-row-trigger" type="checkbox"
                            value="true" name="compositeWithBalance" seed="fastpay-balance-input"  
                            autocomplete="off"/>
                        <label for="j-balance-box" class="">
                        <span class="label-item" style="color:#111; font-size:18px;">使用当前账户余额支付，当前余额合计： <em class="amount-font-G16" style="color:Red;" id="spnUserAmt">0.00</em>
                                元 </span> 
                            <span class="j-pay-amount label-item pay-amount">本次支付 <em class="amount-font-R16 j-amount-font" id="spnUserPaidamt">0.00</em> 元</span>
                        </label>
                    </div>
                    <div class="j-row row-basic " style=" padding-left:50px;font-size:18px;color:#111;display:none; " id="divUsrAmtInp">
                    
                     1、输入账户支付金额:<span class="txtBox" style=" margin-right:10px;"><input class="tc-text cost" id="txtUserPaidAmt"
                    type="text" autocomplete="off" style="width: 100px;"  /></span>  
                         2、输入账户交易密码:<span class="txtBox"><input class="tc-text cost" id="txtTradPws"
                    type="password" autocomplete="off" style="width: 130px;"  /></span>  
                    </div>
                </div>
                <div class="j-balanceChannel row-container  row-container-disabled" id="Div1" >
                    <div class="j-row row-basic"> 
                        <label  class=""> 
                            <span class="label-item" style="color:#111; font-size:18px;">使用在线支付  </span> 
                            <span class="j-pay-amount label-item pay-amount">本次支付 <em class="amount-font-R16 j-amount-font" id="spnOnlineAmt">0.00</em> 元</span>
                        </label>
                    </div>
                    <div class="row-extra j-extra fn-hide">
                        <div class="j-submitError extra-item">
                        </div>
                    </div>
                </div> 
            </div>




            
            <div id="J-fastpay-submit" class="ui-fm-item ui-fm-action" style=" text-align:center;">
                <input type="button" class="ui-button ui-button-lorange" id="J_authSubmit" value="确认付款" onclick="doConfirmPay();">
                <span class="ui-fm-status fn-hide">正在提交中... </span>
            </div>
        </div>





        

         









     
</div>
                <input type="hidden" name="orderId" id="orderId" value="">
 
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%>
    </div>
    <!-- foot script -->
</body>
</html>
